import csv

myTF1 = []
myTF2 = []

with open("RegulationTwoColumnTable_Documented_2013927.tsv") as tsv:
    for line in csv.reader(tsv, delimiter=";"):
        myTF1.append(line[0])
        myTF2.append(line[1])

# APPENDING ALL LINKS FROM myTF1 --> myTF2
out = []
for i in range(len(myTF2)):
    out.append(myTF1[i] + " > " + myTF2[i])

# SORTING, COUNTING, PRINTING
out.sort()
count =0
for j in range(len(out)):
    if (out[j]!=out[j-1]):    
        count+=1       
        #print out[j]

print count
